<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>商品管理</title>
    <script src="/drclothes/Public/js/jquery.min.js"></script>    
    <script src="/drclothes/Public/js/bootstrap.min.js"></script>  
    <link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/admin.css" rel="stylesheet">
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Drclothes商城后台管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
    <li><a>您好，<?php echo I('session.usernameA'); ?></a></li>
    <li><a href="/drclothes/index.php/admin/form/logout">退出</a></li>
</ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
              <li><a href="/drclothes/index.php/admin">首页</a></li>
              <li class="active"><a href="/drclothes/index.php/admin/Slideshow">首页轮播图管理</a></li>
              <li><a href="/drclothes/index.php/admin/drclothes">商品管理</a></li>
              <li><a href="/drclothes/index.php/admin/User">用户管理</a></li>
              <li><a href="/drclothes/index.php/admin/Order">订单管理</a></li>
              <li><a href="/drclothes/index.php/admin/News">公告列表</a></li>
              <li><a href="/drclothes/index.php/admin/Comment">评论管理</a></li>
          </ul>
        </div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <p class="pull-right" style="margin-top: 20px;"><a class="btn btn-info" href="/drclothes/index.php/home/index" target="_blank">查看首页</a></p>
          <h2 class="sub-header">首页轮播图管理</h2>
          <div class="table-responsive">
            <table class="table table-striped table-hover">
              <thead>
                <tr>
                  <th>#</th>
                  <th>当前图片</th>
                  <th>图片修改</th>
                  <th>图片超链接</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>1</td>
                  <td><img class="img-responsive img-rounded center-block" style="width:800px;" src="/drclothes/Public/image/Slideshow1.jpg"/></td>
                  <form action="/drclothes/index.php/Admin/Slideshow/change?id=1" method="post" enctype="multipart/form-data"><td><input id="img" name="img" class="input-file" type="file" support="image/jpeg" /><p class="help-block">仅支持jpg格式</p></td>
                  <td><textarea style="height:150px;" id="url" name="url" type="text" placeholder="<?php echo ($list[0]["url"]); ?>" required></textarea></td>
                  
                  <td><button class="btn btn-primary" type="submit">修改</button></td></form>
                </tr>
                <tr>
                  <td>2</td>
                  <td><img class="img-responsive img-rounded center-block" style="width:800px;" src="/drclothes/Public/image/Slideshow2.jpg"/></td>
                  <form action="/drclothes/index.php/Admin/Slideshow/change?id=2" method="post" enctype="multipart/form-data"><td><input id="img" name="img" class="input-file" type="file" support="image/jpeg" /><p class="help-block">仅支持jpg格式</p></td>
                  <td><textarea style="height:150px;" id="url" name="url" type="text" placeholder="<?php echo ($list[1]["url"]); ?>" required></textarea></td>
                  
                  <td><button class="btn btn-primary" type="submit">修改</button></td></form>
                </tr>
                <tr>
                  <td>3</td>
                  <td><img class="img-responsive img-rounded center-block" style="width:800px;" src="/drclothes/Public/image/Slideshow3.jpg"/></td>
                  <form action="/drclothes/index.php/Admin/Slideshow/change?id=3" method="post" enctype="multipart/form-data"><td><input id="img" name="img" class="input-file" type="file" support="image/jpeg" /><p class="help-block">仅支持jpg格式</p></td>
                  <td><textarea style="height:150px;" id="url" name="url" type="text" placeholder="<?php echo ($list[2]["url"]); ?>" required></textarea></td>
                  
                  <td><button class="btn btn-primary" type="submit">修改</button></td></form>
                </tr>
              </tbody>
            </table>

          </div>

        <div class="pages">
            <?php echo ($page); ?>
        </div>
        </div>
      </div>
    </div>
</body>
</html>